package com.legrand.device;

import com.legrand.common.config.RedisUtils;
import com.legrand.common.permission.ParentConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
*@author xiah
*2018-07-06 02:42:32
*/
@SpringBootApplication
@ParentConfig
@EnableEurekaClient
@EnableFeignClients
@EnableScheduling
@EnableCaching
public class DeviceApplication {

	public static void main(String[] args) {
		SpringApplication.run(DeviceApplication.class, args);
	}

	@Bean
	public RedisUtils getRedisUtil(){
		return  new RedisUtils();
	}
}
